package com.lzx.adx.report.enums;

public enum WphCovertBaiduEnums {

    activate("ACTIVE", "activate", "激活"),
    //    LAUNCH("LAUNCH","reEngage","启动"),
//    ADD_CART("ADD_CART","paid","加购"),
    NEW_ORDER("NEW_ORDER", "activate", "新客下单")
//    OLD_ORDER("OLD_ORDER","paid","老客下单")
    ;


    private String wphCode;

    private String baiduCode;

    private String msg;

    WphCovertBaiduEnums(String wphCode, String baiduCode, String msg) {
        this.wphCode = wphCode;
        this.baiduCode = baiduCode;
        this.msg = msg;
    }

    public String getWphCode() {
        return wphCode;
    }

    public void setWphCode(String wphCode) {
        this.wphCode = wphCode;
    }

    public String getBaiduCode() {
        return baiduCode;
    }

    public void setBaiduCode(String hwCode) {
        this.baiduCode = hwCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static String getOutCode(String wphCode) {
        for (WphCovertBaiduEnums value : WphCovertBaiduEnums.values()) {
            if (value.getWphCode().equals(wphCode)) {
                return value.getBaiduCode();
            }
        }
        return null;
    }
}
